#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<cstdio>
#include<cmath>

using namespace std;

int main()
{
	double A, B, C;
	cin >> A >> B >> C;
	printf("TRIANGULO: %.3lf\n", A * C / 2);
	printf("CIRCULO: %.3lf\n", 3.14159 * pow(C, 2));
	printf("TRAPEZIO: %.3lf\n", (A + B) * C / 2);
	printf("QUADRADO: %.3lf\n", pow(B, 2));
	printf("RETANGULO: %.3lf\n", A * B);
	return 0;
}